<template>
  <div class="error-container">
    <div class="error-box">
      <el-row>
        <el-col :span="12" :offset="4">
          <el-button shape="circle" class="pan-back-btn" @click="backLastPage">返回</el-button>
          <h1 class="text-jumbo">Oops!</h1>
          <h2>你没有权限</h2>
          <h6>你可以去申请开通权限</h6>
          <ul class="list-unstyled">
            <li>或者你可以去:</li>
            <li class="link-type">
              <router-link to="/">回首页</router-link>
            </li>
          </ul>
        </el-col>
        <el-col :span="8">
          <div class="text-401">401</div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Page401',
  data() {
    return {};
  },
  methods: {
    backLastPage() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="less" scoped>
.animate-up {
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}
@keyframes slideUp {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.error-container {
  width: 100%;
  min-width: 1000px;
  height: calc(100vh - 10px);
  display: flex;
  flex-direction: row;
  justify-content: center;
  .error-box {
    width: 800px;
    padding: 100px 0;
    .pan-back-btn {
      background: @color-primary;
      color: #fff;
      .animate-up();
    }
    h1,
    h2,
    h6 {
      .animate-up();
    }
    .text-jumbo {
      font-size: 60px;
      font-weight: 700;
      color: @color-primary;
    }
    .list-unstyled {
      font-size: 14px;
      .animate-up();
      li {
        padding-bottom: 5px;
      }
      a {
        color: #008489;
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }
      }
    }
    .text-401 {
      width: 400px;
      padding: 150px 0;
      overflow: hidden;
      color: @color-primary;
      font-size: 150px;
      text-align: center;
      .animate-up();
    }
  }
}
/deep/ .ivu-modal-body {
  overflow: hidden;
  .pan-img {
    width: 568px;
    height: 568px;
    margin: 0 auto;
  }
}
</style>
